@extends('www/zc-admin/layout')
@section('content')

    <div class="main-container">

        @include("/www/zc-admin/left-nav",['typeId'=>$typeId,'nav'=>'activity'])



        <div class="main-content">

            <div class="content-anv">
                <span>首页</span>
                <span> ></span>
                <span>总凑总览</span>
                <ul>
                    <li><span>众筹中：</span><span class="num">{{$total - $finish}}</span></li>
                    <li><span>已完成：</span><span class="num">{{$finish}}</span></li>
                    <li><span>总计：</span><span class="num">{{$total}}</span></li>
                </ul>
            </div>


            <form action="?" class="seach-box" method="get">
                <input type="hidden" name="typeId" value="{{$typeId}}">
                <?php  $status = Request::input('status',-1);?>
                {{--<select name="status">--}}
                    {{--<option value="-1">选择状态</option>--}}
                    {{--<option value="1">已完成</option>--}}
                    {{--<option value="0">未完成</option>--}}
                {{--</select>--}}

                <input type="text" name="title" placeholder="请输入标题" value="{{Request::input('title','')}}">
                <input type="text" name="manager" placeholder="请输入发起人" value="{{Request::input('namager','')}}">


                <p><a href="/www/zhongchouAdmin/new_activity?typeId={{$typeId}}"><img src="/www/zc666/images/admin/add.png"></a></p>
                <p><img src="/www/zc666/images/admin/daochu.png"></p>
                <p><img src="/www/zc666/images/admin/seach.png" onclick="$('form').submit();"></p>


            </form>





            <table class="table">
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>发起人</th>
                    <th>链接</th>
                    {{--<th>电话</th>--}}
                    {{--<th>筹款金额</th>--}}
                    {{--<th>已筹金额</th>--}}
                    <th>目标金额</th>
                    <th>已完成</th>
                    {{--<th>进行中</th>--}}
                    {{--<th>已失败</th>--}}
                    <th>总计</th>
                    <th>开始时间</th>
                    <th>接收时间</th>
                    {{--<th>状态</th>--}}
                    <th>操作</th>
                </tr>

                @foreach($activitys as $order)

                    <tr>
                        <td>{{$order->activity_id}}</td>
                        <td>{{$order->title}}</td>
                        <td>{{$order->manager}}</td>
                        <td>
                            <a target="_blank" href="https://api.qrtool.cn/?text={{urlencode(url('www/zhongchou666/index?bind=1&activityId='.$order->activity_id))}}">查看</a>
                        </td>
                        {{--<td>{{$order->mobile}}</td>--}}
                        <td>{{$order->money}}</td>
                        {{--<td>{{$order->raised_money}}</td>--}}
                        {{--<td>{{$order->supports_num}}</td>--}}
                        <td>{{$order->order_finish_num}}</td>
                        <td>{{$order->order_total_num}}</td>

                        {{--<td>0</td>--}}
                        {{--<td>0</td>--}}
                        <td>{{substr($order->begin_time,0,10)}}</td>
                        <td>{{substr($order->end_time,0,10)}}</td>
                        {{--<td>0</td>--}}
                        <td>
                            <a href="/www/zhongchouAdmin/new_activity?activityId={{$order->activity_id}}" class="btn btn-info btn-ms">编辑</a>
                            <a href="/www/zhongchouAdmin/del_activity?activityId={{$order->activity_id}}" class="btn btn-danger btn-ms" onclick="return confirm('确定删除吗?');">删除</a>
                        </td>
                    </tr>
                @endforeach
            </table>


            <div>
                {{ $activitys->appends(Request::all())->links() }}
            </div>

            <div class="h100"></div>
        </div>
    </div>



@endsection